package com.yserp.project.erp.record.checkorderlog.domain;

import com.yserp.framework.aspectj.lang.annotation.Excel;
import com.yserp.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 订单审核日记对象 erp_check_order_log
 * 
 * @author yserp
 * @date 2022-07-07
 */
public class CheckOrderLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private String orderType;

    /** 订单主键 */
    @Excel(name = "订单主键")
    private Long ordeId;

    /** 订单编码 */
    @Excel(name = "订单编码")
    private String orderCode;

    /** 审核状态 */
    @Excel(name = "审核状态")
    @NotBlank(message = "审核状态不能为空")
    private String orderStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String advice;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderType(String orderType)
    {
        this.orderType = orderType;
    }

    public String getOrderType()
    {
        return orderType;
    }
    public void setOrdeId(Long ordeId)
    {
        this.ordeId = ordeId;
    }

    public Long getOrdeId()
    {
        return ordeId;
    }
    public void setOrderCode(String orderCode)
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode()
    {
        return orderCode;
    }
    public void setOrderStatus(String orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus()
    {
        return orderStatus;
    }
    public void setAdvice(String advice)
    {
        this.advice = advice;
    }

    public String getAdvice()
    {
        return advice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderType", getOrderType())
            .append("ordeId", getOrdeId())
            .append("orderCode", getOrderCode())
            .append("orderStatus", getOrderStatus())
            .append("advice", getAdvice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
